PaymentPlugins\WooCommerce\PPCP\Payments\Gateways\AbstractGateway A

Total Complexity 59
Dependencies 16
Dependents 22
Total lines 411
Lines of code 263
Logical lines of code 131
Comment lines 67
Methods 36
Properties 10

Methods 36

Method Rating Maintainability Complexity Lines of code
process_payment()
A
49 9 30
add_payment_method()
S
47 6 35
process_refund()
S
50 4 29
payment_fields()
S
57 2 15
init_supports()
S
57 1 19
add_payment_complete_note()
S
65 2 9
is_payment_method_save_required()
S
68 2 7
get_transaction_url()
S
68 2 7
get_billing_token_from_request()
S
76 2 3
render_html_data()
S
70 2 5
add_section_enabled()
S
68 2 7
__construct()
S
61 1 13
is_product_section_enabled()
S
80 1 3
get_product_form_fields()
S
82 1 3
get_payment_method_type()
S
82 1 3
get_admin_script_dependencies()
S
82 1 3
set_save_payment_method()
S
81 1 3
get_save_payment_method()
S
81 1 3
should_save_payment_method()
S
82 1 3
validate_paypal_order()
S
91 1 2
is_place_order_button()
S
82 1 3
get_checkout_script_handles()
S
82 1 3
get_cart_script_handles()
S
82 1 3
get_payment_method_token_instance()
S
69 1 7
is_express_section_enabled()
S
80 1 3
get_product_script_handles()
S
82 1 3
get_saved_payment_method_option_html()
S
76 1 4
get_express_checkout_script_handles()
S
82 1 3
get_payment_method_data()
S
82 1 3
is_section_enabled()
S
78 1 3
init_hooks()
S
74 1 4
product_fields()
S
67 1 7
cart_fields()
S
67 1 7
is_cart_section_enabled()
S
80 1 3
is_minicart_section_enabled()
S
80 1 3
express_checkout_fields()
S
91 1 2